package while循环;

//纸张折叠次数到珠穆朗玛峰的高度

public class test01 {
    public static void main(String[] args) {
        double paper = 0.1;
        int zf = 8848000;
        int count = 0;
        while (paper <= zf) {
            paper *= 2;
            count++;
        }
        System.out.println("纸张折叠的次数为：" + count);
    }
}
